// FileService.js
import axios from 'axios';

export const getFile = async (fileUrl) => {
  try {
    const response = await axios.get(fileUrl, {
      responseType: 'arraybuffer'
    });
    return response.data;
  } catch (error) {
    console.error('Error fetching the file:', error);
    throw error;
  }
};
